﻿#!/bin/sh
clear
echo "Multi start script by .:Orygin:."
echo "ancien9@gmail.com"
echo ""
echo ""
echo ""
echo "Requesting info from server"
sleep 2
echo "Receiving info"
sleep 1
echo "Done..."
sleep 3
clear
case $1 in
    tf)
	if [ "$2" = "" ]; 
			then
	echo "Please specify a map !"
	echo "try map to get the maps names"
			else
	echo "Starting Team Fortress 2 Server"
	sleep 1
	cd /home/server/tf/orangebox/
	screen -A -m -d -S tf-server ./srcds_run -console -game tf +map $2 +maxplayers 18 -autoupdate
	echo "Server Perfectly started on $2"
	fi
	;;
  update)
	"Updating Team Fortress 2 Server"
	sleep 1
	cd /home/server/tf
	./steam -command update -game "tf" -dir .
	;;
    maps)
	echo "cp_dustbowl"
	echo "cp_steel"
	echo "cp_badlands"
	echo "cp_granary"
	echo "cp_well"
	echo "cp_fastlane"
	echo "tc_hydro"
	echo "pl_goldrush"
	echo "pl_badwater"
	echo "arena_ravine"
	echo "arena_lumberyard"
	echo "arena_well"
	echo "arena_badlands"
	echo "arena_granary"
	echo "ctf_2fort"
	echo "ctf_well"
	echo "ctf_turbine"
	echo "and other incoming"
	;;
    help)
	echo "For Team Fortress 2 server: tf "
	echo "For TeamSpeak 2 Server: ts "
	echo "For SVN server : svn"
	;;
    ip)
	echo "search Ip on /"Mon-Ip.com/" "
	echo "To quit the browser, just hit /"CTRL+Z/" "
	sleep 5
	w3m http://www.mon-ip.com/
	;;
    ts)
	echo "Start Team Speak 2 Server"
	sleep 1
	cd /home/server/tss2_rc2/
	./teamspeak2-server_startscript restart
	sleep 1
	;;
    svn)
	echo "Starting SVN server for Call of Kremer mod files"
	svnserve -d -r /home/server/cok/svn
	echo "server started perfectly"
	;;
    *)
	echo "Please Specifie the name of the server after the lunch command."
	echo "For more help, add help after the lunch command"
	sleep 1
	;;
esac
